﻿/****************************************
 *  copyright (c) 2008 leo shen
 *  
 *  all rights reserved         
 * 
 *  e-mail : syl.lucky@gmail.com
 * *************************************/

using System;
using System.Collections.Generic;
using System.Text;

namespace DotUpdater.Core
{   
    /// <summary>
    /// a folder info
    /// </summary>
    public class App_Folder : App_FileORFolder
    {
        List<App_Folder> m_subFolders;
        List<App_File> m_files;

        public App_Folder(string name)
            : base(name)
        {            
        }

             
        public List<App_Folder> SubFolders
        {
            get
            {
                if (m_subFolders == null)
                {
                    m_subFolders = new List<App_Folder>();
                }
                return m_subFolders;
            }
        }
        
        public List<App_File> Files
        {
            get
            {
                if (m_files == null)
                {
                    m_files = new List<App_File>();
                }
                return m_files;
            }
        }        
    }
}
